package kr.saeildamil.androidstudy_second.ani;

import kr.saeildamil.andrordstudy.second.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class ListAnim extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch23_listanim);
		
		ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.interpolator, android.R.layout.simple_list_item_1);
		
		ListView list = (ListView) findViewById(R.id.listanim_list);
		list.setAdapter(adapter);
		
		overridePendingTransition(R.anim.translatereverse,0);
	}
	
	@Override
	protected void onPause() {
		super.onPause();
		overridePendingTransition(0,R.anim.translate);
	}
}
